<?php
namespace apps\admin\controllers;
if( !defined( 'APP_ROOT' ) ){ echo 'Direct Access Deny!'; return; }
use apps\admin\ext\AdminBaseController;

use apps\admin\test\ArticlecatsTest;
use Phalcon\Annotations\Reflection;

use helpers\DirUtils;

class DevtoolsController extends AdminBaseController
{
    public function indexAction()
    {
//         DirUtils::getAllCtrls( 'admin' );

//         $at = new ArticlecatsTest( $this->di );
//         $at->run();
        
        $arrModules = DirUtils::getAllModules();
        
        assert( $arrModules );
        
        $this->view->modules = $arrModules;
        
        
//         $this->view->disable();
        
//         $reader = new \Phalcon\Annotations\Reader();
// //         echo __METHOD__, '<br>';
        
//         $parsing = $reader->parse( 'apps\admin\test\ArticlecatsTest' );
        
//         $reflection = new Reflection($parsing);
// // Get the annotations in the class docblock
// $classAnnotations = $reflection->getClassAnnotations();

//         $i = 999;
//         foreach( $classAnnotations as $annotation )
//         {
//             var_dump( $annotation->getArguments() );
//             echo '<br>';
//         }
        
        
    }
    
    public function utAction()
    {
        
    }
}